#ifndef CLA_DORM_H
#define CLA_DORM_H

#include<iostream>
#include<QVector>
using namespace std;
struct Node{
   QString l;
   QString s;
   QString score;
};
struct SGNode{
    QString s;
    float score;
};

class cla_dorm:public Node,public SGNode
{
protected:
    QVector<Node> ve;
    QVector<SGNode> v;
public:
    cla_dorm();
    void entDorm(QString fileName,QStringList list);//信息录入
    bool inqDorm(QString fileName,QString s);//信息查询
    void toQlistDorm(QString filePath,QStringList &list,int &r_count);
    void modfDorm(QString fileName,QString s1,QString s2,QString s3);//信息修改
    void change(QVector<SGNode>::iterator a,QVector<SGNode>::iterator b);//交换两个迭代器
};

#endif // CLA_DORM_H
